#import "DuskKiteView.h"


@implementation DuskKiteView



- (void)setCascadeGrinGlimpse:(DuskKiteModel *)cascadeGrinGlimpse {
	_cascadeGrinGlimpse = cascadeGrinGlimpse;

	//: 配置cell的UI

	NSString *blazeYarnHarmony = [NSString stringWithFormat:@"%ld", cascadeGrinGlimpse.yardInspire];
	self.jellyKnotDelightLabel.text = blazeYarnHarmony;

	if (cascadeGrinGlimpse.brillianceEmbark.count > 0) {
		[self.diligentImageView sd_setImageWithURL:[NSURL URLWithString:cascadeGrinGlimpse.brillianceEmbark[0]] placeholderImage:nil];
	}

}
- (UITextView *)zebraTextView {
	if (!_zebraTextView) {
	
        _zebraTextView = [[UITextView alloc] initWithFrame:CGRectZero];
	}
	return _zebraTextView;
}

//: self.hazeBtn 的点击事件
- (void)action_3 {}

//: 设置whimsyWonder的圆角
- (void)harmonyDreamscape:(UIImageView *)balloon quicksilver:(CGFloat)graspTerrain {
	balloon.layer.cornerRadius = graspTerrain;
	balloon.layer.masksToBounds = YES;
}

- (void)blossomSetupViews {
	//: 描述_0
	[self addSubview:self.zebraTextView];
	[self.zebraTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(47);
		make.height.mas_equalTo(35);
		make.bottom.equalTo(@(17));
	}];


    //: 描述_1
    self.jellyKnotDelightLabel = [UILabel new];
    self.jellyKnotDelightLabel.size = CGSizeMake(94, 43);
    self.jellyKnotDelightLabel.left = 33;
    self.jellyKnotDelightLabel.top = 44;
    self.jellyKnotDelightLabel.text = @"label_1";
    self.jellyKnotDelightLabel.font = [UIFont systemFontOfSize:18 weight:UIFontWeightMedium];
    self.jellyKnotDelightLabel.textColor = [UIColor colorWithRed:171/255.0 green:109/255.0 blue:231/255.0 alpha:0.9];
    self.jellyKnotDelightLabel.textAlignment = NSTextAlignmentLeft;
    self.jellyKnotDelightLabel.numberOfLines = 3;
    [self addSubview:self.jellyKnotDelightLabel];


    //: 描述_2
    UIView *doodleApexMotion = [[UIView alloc] initWithFrame:CGRectZero];
    self.gratitudeView = doodleApexMotion;
    [self addSubview:doodleApexMotion];
	[self.gratitudeView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(129);
		make.height.mas_equalTo(171);
	}];


    //: 描述_3
    self.hazeBtn = [UIButton new];
    self.hazeBtn.frame = CGRectMake(3, 33, 166, 113);
    UIImage *pioneerRadiateGracious = [UIImage imageNamed:@"images/icon_3.png"];
    if (pioneerRadiateGracious) {
	    [self.hazeBtn setImage:pioneerRadiateGracious forState:UIControlStateNormal];
    }
    [self.hazeBtn setTitle:@"button_3" forState:UIControlStateNormal];
    [self.hazeBtn setTitle:@"button_selected_3" forState:UIControlStateSelected];
    [self.hazeBtn setTitleColor:[UIColor colorWithRed:91/255.0 green:253/255.0 blue:221/255.0 alpha:0.8] forState:UIControlStateNormal];
    [self.hazeBtn setTitleColor:[UIColor colorWithRed:150/255.0 green:162/255.0 blue:42/255.0 alpha:0.9] forState:UIControlStateSelected];
    [self.hazeBtn addTarget:self action:@selector(action_3) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:self.hazeBtn];


    //: 描述_4
    self.xenonGlowView = [UIView new];
    [self addSubview:self.xenonGlowView];
	[self.xenonGlowView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(62);
		make.height.mas_equalTo(38);
		make.top.equalTo(@(15));
		make.bottom.equalTo(@(22));
	}];


    //: 描述_5
    UIView *quenchEchoQuicksilver = [[UIView alloc] initWithFrame:CGRectZero];
    quenchEchoQuicksilver.frame = CGRectMake(43, 28, 195, 149);
    self.melancholyFeastView = quenchEchoQuicksilver;
    [self addSubview:quenchEchoQuicksilver];


    //: 描述_6
    UIImageView *whimsyWonder = [[UIImageView alloc] initWithFrame:CGRectZero];
    whimsyWonder.contentMode = UIViewContentModeScaleAspectFill;
    whimsyWonder.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [self harmonyDreamscape:whimsyWonder quicksilver:12];
    UIImage *libertyReverieResonate = [UIImage imageNamed:@"images/image_6.png"];
    if (libertyReverieResonate) {
	    whimsyWonder.image = libertyReverieResonate;
    }
    self.diligentImageView = whimsyWonder;
    [self addSubview:whimsyWonder];
	[self.diligentImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(178);
		make.height.mas_equalTo(56);
	}];
}


@end